package com.globalresources.dao.inface;


import java.util.List;

import com.globalresources.po.Authority;
import com.trg.dao.dao.standard.GenericDAO;

/**
 * @author aaron.lu(luzhiyuan) E-mail:atyuan.lu@gmail.com
 * @since 创建时间：Jul 7, 2009 3:13:14 AM
 */
public interface IAuthorityDao extends GenericDAO<Authority, Integer>{
	/**
	 * load authority
	*@author aaron.lu(luzhiyuan)
	*@param authority
	*@param pagesize
	*@param startrow
	*@return
	 */
	public List<Authority> getAuthorities(String authority, int pagesize, int startrow);
	
	/**
	 * count the authority
	*@author aaron.lu(luzhiyuan)
	*@param authority
	*@return
	 */
	public int count(String authority);

}
